@extends('adminer.admin')
@section("style")

@endsection
@section('content')
    <!-- BEGIN PAGE HEADER-->
    @include("adminer.public.bread")
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN VALIDATION STATES-->
            <div class="widget box blue">
                <div class="widget-title">
                    <h4><i class="icon-reorder"></i>{{$title}}</h4>
                    <span class="tools">
                           <a href="javascript:;" class="icon-chevron-down"></a>
                           <a href="javascript:;" class="icon-remove"></a>
                        </span>
                </div>
                <div class="widget-body form">
                    <div class="alert alert-error" id="error" style="display: none">
                        <button class="close" data-dismiss="alert">×</button>
                        <strong id="error-tip">Error!</strong>
                    </div>
                    <!-- BEGIN FORM-->
                    <form action="{{route("admin.store")}}" method="post" id="main-form" class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label">角色</label>
                            <div class="controls">
                                <select class="input-medium m-wrap" name="role">
                                    @foreach($roles as $role)
                                    <option value="{{$role->id}}">{{$role->title}}</option>
                                    @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">用户名</label>
                            <div class="controls input-icon">
                                <input type="text" class="span3" name="username" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">密码</label>
                            <div class="controls input-icon">
                                <input minlength="6" maxlength="20" name="password" type="password" size="30" class="span3" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">确认密码</label>
                            <div class="controls input-icon">
                                <input class="span3" name="password_confirmation" type="password" size="30" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">邮箱</label>
                            <div class="controls input-icon">
                                <input type="text" class="span3" name="email" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">真实姓名</label>
                            <div class="controls input-icon">
                                <input type="text" class="span3" name="realname" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">性别</label>
                            <div class="controls">
                                <label class="radio">
                                    <input type="radio" name="sex" value="1" checked />
                                    正常
                                </label>
                                <label class="radio">
                                    <input type="radio" name="sex" value="2" />
                                    屏蔽
                                </label>
                                <label class="radio">
                                    <input type="radio" name="sex" value="3" />
                                    保密
                                </label>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">电话</label>
                            <div class="controls input-icon">
                                <input type="text" class="span3" name="phone" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">ＱＱ</label>
                            <div class="controls input-icon">
                                <input type="text" class="span3" name="qq" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">联系地址</label>
                            <div class="controls input-icon">
                                <input type="text" class="span3" name="address" />

                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">状态</label>
                            <div class="controls">
                                <label class="radio">
                                    <input type="radio" name="status" value="1" checked />
                                    正常
                                </label>
                                <label class="radio">
                                    <input type="radio" name="status" value="2" />
                                    屏蔽
                                </label>
                            </div>
                        </div>
                        <div class="form-actions">
                            <button type="submit" class="btn btn-success">保存</button>
                            <button type="button" class="btn" onclick="javascript:window.history.back();">放弃</button>
                        </div>
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
            <!-- END VALIDATION STATES-->
        </div>
    </div>
    <!-- END PAGE CONTENT-->
@endsection
@section("script")
    <script>
        jQuery(document).ready(function() {
            // initiate layout and plugins
            App.init();
        });
    </script>
@endsection